<template>
  <div id="app">
    <router-view />
  </div>
</template>
<script>
export default {
  created () {
    console.log(this.$store)
    const url = this.$store.state.app.entryUrl
    // 记录进入app时的url
    if (typeof url === 'undefined' || url === '') {
      console.log(this.$store)
      this.$store.dispatch('set_entryUrl', location.href.split('#')[0])
    }
  }
}
</script>
<style lang="scss">
#app {
  background: #f7f7f7;
  width: 100%;
  height: 100%;
}
html,
body {
  width: 100%;
  height: 100%;
}
</style>
